<?

     $query="SELECT txt_id, txt_sujet, txt_texte,txt_createur FROM sd_site_txt WHERE txt_id=$txt_id"; // 0 = ID, 1 = designation ( :) ) ,2 = image , 3 = explication.
     $resultat=mysql_query($query);
     $tmp =mysql_fetch_array($resultat);

     
     TITRE($tmp[1]);
     $tmp[2]=VRTcode($tmp[2]);

     $PAGE= TDF_M('OPTION');
      $PAGE.="</BR>";
    $PAGE.=TDF_M($tmp[2]);
    $PAGE.="</BR>";



//Pour la gestion administrative des page dynamique
//-------------------------------------------------

     
$query="SELECT count(*) FROM sd_admin WHERE admin_pagedyn=1 AND admin_user=$_USER_ID"; $resultat=mysql_query($query);
$tmp =mysql_fetch_array($resultat);

IF ($tmp[0]!=0){
   $TMP=" <form method=\"post\" name=\"form\" action=\"?p=admin_change_tdyna\" target=\"_self\">
    <input name=\"ID\" type=\"hidden\" id=\"ID\" value=\"$txt_id\">
            <input type=\"submit\" name=\"Submit\" value=\"Changer\"> </form>" ;
   $PAGE.=TDF_M($TMP);


}

echo $PAGE;
?>
